package org.jeecg.modules.iot.mqtt.server.service.processor.cabinet;

import org.jeecg.modules.iot.model.cabinet.CabinetHeartbeatData;
import org.jeecg.modules.iot.model.cabinet.CabinetOpenDoorData;
import org.jeecg.modules.iot.model.cabinet.CabinetRegisterData;
import org.jeecg.modules.iot.model.cabinet.CabinetSwapData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class CabinetProcessor {
    private static final Logger logger = LoggerFactory.getLogger(CabinetProcessor.class);
    public void handleDeviceRegister(CabinetRegisterData data) {
        // 处理设备注册数据
        logger.info("处理设备注册数据: " + data);
    }

    public void handleDeviceHeartbeat(CabinetHeartbeatData data) {
        // 处理设备心跳数据
        logger.info("处理设备心跳数据: " + data);
    }

    public void handleDeviceSwap(CabinetSwapData data) {
        // 处理设备换电数据
        logger.info("处理设备换电数据: " + data);
    }

    public void handleDeviceOpenDoor(CabinetOpenDoorData data) {
        // 处理设备打开仓门信息
        logger.info("处理设备打开仓门信息: " + data);
    }
}